package com.itgao.pojo;

import lombok.Data;

@Data
public class User {
    private  int id;
    private String sname;
    private int age;
    private String position;

   /* public User() {
    }

    public User(int id, String name, int age, String position) {
        this.id = id;
        this.sname = name;
        this.age = age;
        this.position = position;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String name) {
        this.sname = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + sname + '\'' +
                ", age=" + age +
                ", position='" + position + '\'' +
                '}';
    }*/
}
